package main

import (
	"gitee.com/yungrun/project/commons/config"
	"gitee.com/yungrun/project/svr/flow/handler"
	"github.com/micro/go-log"
	"github.com/micro/go-micro"

	flow "gitee.com/yungrun/project/svr/flow/proto/flow"
)

func main() {
	// New Service
	service := micro.NewService(
		micro.Name(config.Namespace+config.ServiceNameFlow),
		micro.Version("latest"),
	)

	// Initialise service
	service.Init()

	// Register Handler
	flow.RegisterFlowHandler(service.Server(), new(handler.Flow))


	// Run service
	if err := service.Run(); err != nil {
		log.Fatal(err)
	}
}
